<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>无标题文档</title>
	<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css"/>
<script src="__PUBLIC__/js/jquery1.8.3.js"></script>
<script language="javascript" type="text/javascript" src="__PUBLIC__/admin/datepicker/WdatePicker.js"></script>
<script type="text/javascript">
//时间选择
function selecttime(){
		var startTime = $("#countTimestart").val();
		if(startTime != ""){
			WdatePicker({dateFmt:'yyyy-MM-dd'});
		}else{
			WdatePicker({dateFmt:'yyyy-MM-dd'});
		}
}
</script>
</head>
<style>
	input,select {
		text-indent:3px;
		border: 1px #cccccc solid;
		height: 25px;
		line-height: 25px;
		width:200px;
	}
	table thead tr th:first-child{
		width: 30%;
		text-align: right;
	}
</style>
<body>

<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>派单管理</a></li>
		<li><a>派单数据</a></li>
	</ul>
</div>

<div class="rightinfo">
	<div class="tools">
		<form method="post" enctype="multipart/form-data" action="{:U('/Home/Media/mediasourcedata')}">
		<input type="text" style="width: 140px;" class="dfinput ordertimebody1" name="strat" id="countTimestart" onfocus="selecttime()" value="<?php echo $strat;?>" size="17" class="date" readonly>
		<input name="" type="submit" class="btn" value="确认"/>
		</form>
	</div>
	<table class="tablelist">
			<thead>
			<tr>
				<th width="">编号</th>
				<th width="">投放渠道</th>
				<th width="">投放形式</th>
				<th width="">数量</th>
				<th width="">操作</th>
				</tr>
				</thead>
				<tbody>

	<foreach name='source' item='v'>
		<tr>
			<td>{$v.source}</td>
			<td>{$v.sourcename}</td>
			<td>{$v.sourcetype}</td>
			<td>{$v.sourcenum}</td>
			<td>
			<a href="{:U('/Home/Media/wemedia_list',array('source'=>$v['source'],'sourcetime'=>$strat))}">查看</a>
			</td>
		</tr>
	</foreach>

				</tbody>
		</table>

</div>
</body>
</html>
